﻿using System;
using System.ComponentModel.DataAnnotations;

namespace QuDao
{
    /// <summary>
    /// biz_goods_sales: biz_商品销售明细
    /// </summary>
    [FreeSql.DataAnnotations.Table(Name = "biz_goods_sales")]
    public partial class GoodsSales
    {
        /// <summary>
        /// ID：对应订单项ID
        /// </summary>
        [FreeSql.DataAnnotations.Column(IsPrimary = true, IsIdentity = false)]
        [Display(Name = "ID")]
        public long ID { get; set; }

        /// <summary>
        /// 租户ID
        /// </summary>
        [Display(Name = "租户ID")]
        public int TID { get; set; }

        /// <summary>
        /// 订单ID
        /// </summary>
        [Display(Name = "订单ID")]
        public long OrderID { get; set; }

        /// <summary>
        /// 商品ID
        /// </summary>
        [Display(Name = "商品ID")]
        public int GoodsID { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        [Display(Name = "用户ID")]
        public long UserID { get; set; }

        /// <summary>
        /// 用户姓名
        /// </summary>
        [Display(Name = "用户姓名")]
        public string TrueName { get; set; }

        /// <summary>
        /// 代理ID
        /// </summary>
        [Display(Name = "代理ID")]
        public long AgentID { get; set; }

        /// <summary>
        /// 代理姓名
        /// </summary>
        [Display(Name = "代理姓名")]
        public string AgentName { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>
        [Display(Name = "商品名称")]
        public string GoodsName { get; set; }

        /// <summary>
        /// 类别ID
        /// </summary>
        [Display(Name = "类别ID")]
        public int CategoryID { get; set; }

        /// <summary>
        /// 类别名称
        /// </summary>
        [Display(Name = "类别名称")]
        public string CategoryName { get; set; }

        /// <summary>
        /// 购买数量
        /// </summary>
        [Display(Name = "购买数量")]
        public int Num { get; set; }

        /// <summary>
        /// 进货价：单价，会员实际优惠价格
        /// </summary>
        [Display(Name = "进货价")]
        public decimal Price { get; set; }

        /// <summary>
        /// 成本价
        /// </summary>
        [Display(Name = "成本价")]
        public decimal CostPrice { get; set; }

        /// <summary>
        /// 进货成本
        /// </summary>
        [Display(Name = "进货成本")]
        public decimal CostAmount { get; set; }

        /// <summary>
        /// 销售金额：进货价 × 数量
        /// </summary>
        [Display(Name = "销售金额")]
        public decimal SalesAmount { get; set; }

        /// <summary>
        /// 分账金额：减去成本后要分出去的费用
        /// </summary>
        [Display(Name = "分账金额")]
        public decimal DividedAmount { get; set; }

        /// <summary>
        /// 业绩提成：代理的业绩提成
        /// </summary>
        [Display(Name = "业绩提成")]
        public decimal Commission { get; set; }

        /// <summary>
        /// 销售日期
        /// </summary>
        [Display(Name = "销售日期")]
        public DateTime SalesDate { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        public DateTime CreateTime { get; set; }


    }
}